<HTML>
<HEAD>

<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery/jquery-1.8.2.min.js"></script>

<script type="text/javascript">
	$(document).ready(function() {

	});
	function asd() {
		var s = $("#s").val();
		$.ajax({
			type : "post",
			dataType : "text",
			data : {
				name : s
			},
			url : "CheckCodeServerlet.do",
			success : function(data) {
				$("#a").html(data);
			}
		});
	}
$(function(){
	alert("asdasd");
});
</script>
</HEAD>
<BODY>
	<input type="text" id="s">
	<input type="button" onclick="asd()" value="ajax交互">
	<div id="a"></div>
</BODY>
</HTML>
